const express = require('express');
const router = express.Router();

// 定义路由
router.get('/', (req, res) => {
    // res.send('Home Page');
    var list=["111","222", "333"];
    var myhtml='<b>我是加粗<b>'
    res.render('home',{list:list,myhtml:myhtml});
})

router.get("/list", (req, res) => {
    res.send(["111","222", "333"]);
})

module.exports = router;